<?php
/**
 * Created by PhpStorm.
 * User: Monkey
 * Date: 2021/10/13
 * Time: 11:27
 * Desc: 登陆
 */

namespace app\backend\validate;

use think\Validate;

class OperateLogValidate extends Validate
{
    protected $rule = [
        'page' => 'integer',
        'limit' => 'integer',
        'start_date' => 'dateFormat:Y-m-d H:i:s',
        'end_date' => 'dateFormat:Y-m-d H:i:s'
    ];

    protected $message = [
        'page.integer' => '页码格式错误',
        'limit.integer' => '条数格式错误',
        'start_date.dateFormat' => '开始日期格式错误',
        'end_date.dateFormat' => '结束日期格式错误'
    ];

    protected $scene = [
        'index'  =>  ['page','limit','start_date','end_date']
    ];
}
